Tweak UI for warnings and errors
authorAlex Crichton <alex@alexcrichton.com>
Sun, 13 Mar 2016 22:24:55 +0000 (15:24 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 17 Mar 2016 06:42:49 +0000 (23:42 -0700)
commit8b35fbdcf6adab9733df1da2db6187677e2739d8
tree181994cb7b548531dc76110e758cec2a079dff03
parentc5360c4d0fbf4fe9ee20a7953850105223b38ba7
Tweak UI for warnings and errors

Right now Cargo prints out errors justified like all other status messages, but
this can look odd without coloration:

```
   error some error message
```

Instead, this commit changes both warnings and errors to use the same style of:

```
error: some error message
warning: some warning message
```

Additionally, warnings now only print out "warning" in yellow instead of the
entire message (like errors do)
src/cargo/core/shell.rs
src/cargo/lib.rs
src/cargo/ops/cargo_package.rs
src/cargo/util/flock.rs
src/cargo/util/toml.rs
tests/support/mod.rs
tests/test_bad_config.rs
tests/test_cargo_compile.rs
tests/test_cargo_concurrent.rs
tests/test_cargo_install.rs